package com.smfx.yxt.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smfx.yxt.daoSqlserver.SysCommentTemplateMapper;
import com.smfx.yxt.model.SysCommentTemplate;
import com.smfx.yxt.page.Page;
import com.smfx.yxt.service.ISysCommentTemplateService;

@Service("sysCommentTemplateService")
public class SysCommentTemplateServiceImpl implements ISysCommentTemplateService {

	@Autowired
	private SysCommentTemplateMapper sysTemplateMapper;
	
	@Override
	public int insertSelective(SysCommentTemplate record) {
		return sysTemplateMapper.insertSelective(record);
	}

	@Override
	public SysCommentTemplate selectByPrimaryKey(Integer id) {
		return sysTemplateMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(SysCommentTemplate record) {
		return sysTemplateMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<SysCommentTemplate> selectListByPage(Page<SysCommentTemplate> page) {
		return sysTemplateMapper.selectListByPage(page);
	}

	@Override
	public int insertBatch(List<SysCommentTemplate> list) {
		return sysTemplateMapper.insertBatch(list);
	}

}
